#root {

  /* 全局样式重置 */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #e6f2ff 0%, #d4e8ff 100%);
    min-height: 100vh;
  }

  .app {
    width: 100%;
    padding: 20px;
    min-height: 100vh;
    background: url(./assets/images/bg.jpg) no-repeat bottom center;
    background-size: cover;
  }

  .app-main {
    width: 1000px;
    margin: 0 auto;
  }

  /* 头部样式 */
  .header {
    position: relative;
    width: 684px;
    height: 130px;
    padding: 24px 0 24px 54px;
    margin-bottom: 16px;
    background: url(./assets/images/title-bg.svg) no-repeat center;
    background-size: contain;
  }

  .header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 18px;
    height: 18px;
    border-top: 2px solid #4A86F5;
    border-left: 2px solid #4A86F5;
    border-top-left-radius: 3px;
  }

  .header::after {
    content: "";
    position: absolute;
    right: 7px;
    bottom: 7px;
    width: 18px;
    height: 18px;
    border-right: 2px solid #4A86F5;
    border-bottom: 2px solid #4A86F5;
    border-bottom-right-radius: 3px;
  }

  .header h1 {
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 24px;
    color: #2186FB;
  }

  .header p {
    font-size: 16px;
    color: #7f7f7f;
  }

  /* 主内容区布局 */
  .main-content {
    position: relative;
    display: flex;
    height: 600px;
  }

  .main-content::before {
    content: "";
    position: absolute;
    right: 56px;
    top: -132px;
    width: 140px;
    height: 142px;
    background: url(./assets/images/top-right-robot.gif) no-repeat center;
    background-size: contain;
    z-index: 100;
  }

  .main-content::after {
    content: "";
    position: absolute;
    right: 15px;
    top: -300px;
    width: 400px;
    height: 346px;
    background: url(./assets/images/top-right-bg.png) no-repeat center;
    background-size: contain;
    z-index: 90;
  }

  /* 左侧面板样式 */
  .left-panel {
    flex-shrink: 0;
    width: 260px;
    height: 100%;
    padding: 20px;
    border-radius: 12px 0 0 12px;
    background: rgba(241, 248, 254, 0.9);
  }

  .left-panel h2 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #2186FB;
    font-weight: 600;
  }

  .robots-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: calc(100% - 50px);
    overflow-y: auto;
  }

  .robot-item {
    display: flex;
    align-items: center;
    height: 60px;
    padding: 0 16px;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
  }

  .robot-item:hover,
  .robot-item.active {
    background: #DAECFE;
  }

  .robot-item.online .robot-avatar,
  .robot-item.busy .robot-avatar {
    background: #2186FB;
  }

  .robot-item.offline .robot-avatar {
    background: #AAAAAA;
  }

  .robot-info {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .robot-avatar {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
  }

  .robot-avatar::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: url(./assets/images/robot.png) no-repeat center;
    background-size: 22px 22px;
  }

  .robot-details {
    flex: 1;
  }

  .robot-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 2px;
  }

  .robot-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #aaaaaa;
  }

  .status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
  }

  .status-indicator.online {
    background: #52c41a;
  }

  .status-indicator.offline {
    background: #d9d9d9;
  }

  .status-indicator.busy {
    background: #faad14;
  }

  /* 右侧面板样式 */
  .right-panel {
    flex: 2;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 20px 20px 20px 0;
    border-radius: 0 12px 12px 0;
    background: rgba(241, 248, 254, 0.9);
    z-index: 99;
  }

  .conversation-header {
    display: flex;
    justify-content: space-between;
    height: 40px;
    padding: 0 20px;
    border-radius: 20px;
    margin-bottom: 20px;
    font-size: 13px;
    background: #ffffff;
    border: 1px solid #f2f2f2;
  }

  .conversation-header h2 {
    line-height: 40px;
    font-size: 16px;
    color: #2186FB;
    font-weight: 600;
  }

  .conversation-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #666;
    padding: 10px 0;
  }

  .conversation-info-left {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-right: 50px;
    color: #999999;
  }

  .conversation-info-left span {
    vertical-align: middle;
  }

  .conversation-info-left .phone-number {
    margin-right: 30px;
  }

  .conversation-info-left .phone-number::before {
    content: "";
    display: inline-block;
    height: 20px;
    width: 20px;
    margin-right: 4px;
    background: url(./assets/images/phone.png) no-repeat center 1px;
    background-size: contain;
    vertical-align: middle;
  }

  .conversation-info-left .duration::before {
    content: "";
    display: inline-block;
    height: 18px;
    width: 18px;
    margin-right: 4px;
    background: url(./assets/images/time.png) no-repeat center;
    background-size: contain;
    vertical-align: middle;
  }

  .conversation-info-left .highlight {
    margin-left: 8px;
    color: #2186FB;
  }

  .transfer-btn {
    color: #2186FB;
    cursor: pointer;
  }

  .conversation-content {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 10px 0 0 10px;
  }

  .conversation-content::-webkit-scrollbar {
    display: none;
  }

  /* 消息样式 */
  .message {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 20px;
  }

  .pending .message:last-child .message-content::before {
    background: url(./assets/images/voice.gif) no-repeat center;
    background-size: contain;
  }

  .message.replaying .message-content::before {
    background: url(./assets/images/voice.gif) no-repeat center;
    background-size: contain;
  }

  .message.robot {
    flex-direction: row;
  }

  .message.user {
    flex-direction: row-reverse;
  }

  .message.robot .message-container {
    align-self: flex-start;
  }

  .message.user .message-container {
    align-self: flex-end;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }

  .message-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
  }

  .message.robot .message-avatar {
    background: url(./assets/images/chat-robot.png) no-repeat center;
    background-size: contain;
  }

  .message.user .message-avatar {
    background: url(./assets/images/chat-woman.png) no-repeat center;
    background-size: contain;
  }

  .message-container {
    max-width: 70%;
  }

  .message-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 8px;
  }

  .message-header .message-sender {
    font-size: 16px;
    color: #555555;
  }

  .message-header .message-time {
    font-size: 12px;
    color: #999;
  }

  .message.robot .message-header {
    flex-direction: row;
  }

  .message.user .message-header {
    flex-direction: row-reverse;
  }

  .message.user .audio-text {
    padding-left: 0;
  }

  .message-content {
    position: relative;
    height: 26px;
    border-radius: 13px;
    cursor: pointer;
  }

  .message-content audio {
    display: none;
  }

  .message-content::before {
    content: "";
    position: absolute;
    height: 16px;
    width: 16px;
    background: url(./assets/images/voice.png) no-repeat center;
    background-size: contain;
  }

  .audio-text {
    max-width: 400px;
    padding-left: 8px;
    margin-top: 8px;
    font-size: 14px;
    color: #555555;
  }

  .audio-duration {
    position: absolute;
    font-size: 12px;
    color: #999;
  }

  .message.robot .message-content .audio-duration {
    right: -45px;
    top: 3px;
  }

  .message.user .message-content .audio-duration {
    left: -45px;
    top: 5px;
  }

  .message.robot .message-content {
    max-width: 300px;
    background: #DDE9FB;
  }

  .message.robot .message-content::before {
    top: 5px;
    left: 12px;
  }

  .message.user .message-content {
    background: #ffffff;
  }

  .message.user .message-content::before {
    top: 5px;
    right: 12px;
    transform: rotate(180deg);
  }

  .split-line {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 0;
    font-size: 14px;
    color: #7F7F7F;
    gap: 20px;
  }

  .split-line::before {
    content: "";
    display: block;
    flex: 1;
    height: 1px;
    background: #D7D7D7;
  }

  .split-line::after {
    content: "";
    display: block;
    flex: 1;
    height: 1px;
    background: #D7D7D7;
  }
}